var app = getApp();
var server = require('../../utils/server');
const { $Message } = require('../../dist/base/index');
Page({
	data: {
    current: 'tab1',
    current_scroll: 'tab1',
    visible2: false,
  },
	onLoad: function () {
      
	},
	onShow: function () {
    
	},
  getInfo() {
    
    var self = this;
    wx.getUserInfo({
      success:function(res){
         console.log(res);
      }
    })
  },
  loginOut(){

  },
  call(){

    server.postReq('/mobile/commonTools/lockOrderForm',function(res){
      if(res.data.code==1){
        wx.makePhoneCall({
          phoneNumber: res.data.data,
        })
      }
    })
   
  },
  onShareAppMessage: function () {
    console.log(123)
    return {
      title: 'E棒棒外卖',
      desc: '最实惠的外卖',
      path: '../index/index'
    }
  },
  handleClose2() {
    this.setData({
      visible2: false
    });
  },
  loginOut(){
    this.setData({
      visible2: true
    });
  },
  realOut(){
    wx.removeStorageSync('uid');
    wx.clearStorageSync();
      wx.showToast({
        title: '退出成功',
        type:'success'
      })
      wx.redirectTo({
        url: '../login/login',
      })
  }
});

